package com.info33.platform.business.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.info33.platform.business.app.entity.AppRole;
import com.info33.platform.business.app.vo.AppRoleVO;
import com.info33.platform.system.vo.SysUserVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author admin
 */
@Repository
public interface AppRoleDao extends BaseMapper<AppRole> {

    /**
     * pc - 某人角色列表
     *
     * @param uid-
     * @return -
     */
    List<AppRoleVO> getListByUid(@Param("uid") Long uid);

    /**
     * 我所拥有的角色
     *
     * @param appCurrentUser-
     * @return -
     */
    List<AppRoleVO> appRoles(@Param("appCurrentUser") SysUserVO appCurrentUser);
}